/*
 *    This file is part of BlobDB.
 *
 *    BlobDB is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    BlobDB is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with BlobDB.  If not, see <http://www.gnu.org/licenses/>.
 *    
 *    Copyright(c) 2011 Michael Kankkonen
 *    http://www.vnetcon.org
 */


package org.vnetcon.blobdb.database.backend.memory.mdo;

import java.util.Hashtable;

import org.vnetcon.blobdb.database.backend.memory.MemoryPersistenceManager;
import org.vnetcon.blobdb.database.backend.memory.MemoryTransaction;

public class PMF {

	// searched by table id
	public static Hashtable<Integer, TableData> hTableData = new Hashtable<Integer, TableData>();
	// searched by table name + schema
	public static Hashtable<Integer, Table> hTable = new Hashtable<Integer, Table>();
	// searched without parameters
	public static Hashtable<Integer, TableID> hTableID = new Hashtable<Integer, TableID>();

	public static MemoryPersistenceManager getPersistenceManager(){
		MemoryTransaction trans = new MemoryTransaction();
		MemoryPersistenceManager mempm = new MemoryPersistenceManager(trans);
		return mempm;
	}
	
}
